package com.kaifamiao.N0726;

public class Node1 {

    public static void main(String[] args) {

        Person me = new Person();
        me.name = "梁全年";
        me.age = 23;
        me.gender = '男';
        me.IsMarry = false;

        Person obj = new Person();
        obj.name = "蔡旭东";
        obj.age = 23;
        obj.gender = '女';
        obj.IsMarry = true;

        if(me.canmarry(obj)){
            System.out.println(me.name+"和"+obj.name+"可以在一起结婚啦。");
        }else{
            System.out.println(me.name+"和"+obj.name+"两人不合适，算了吧。");
        }
    }
}